package com.bluedon.ism.commons.service;

import com.bluedon.ism.commons.entity.District;
import com.bluedon.ism.commons.entity.Organization;

import java.util.List;
import java.util.Map;

/**   
*    
* 组织service接口类
*/ 
public interface OrganizationService {
	/**
	 * 增加组
	 * @return
	 */
	public Organization addOrganization(Organization organization);
	
	/**
	 * 修改组
	 * @return
	 */
	public Organization updateOrganization(Organization organization);
	
	/**
	 * 删除组
	 * @return
	 */
	public Organization deleteOrganization(Organization organization);
	
	/**
	 * 查询组
	 * @return
	 */
	public Organization findOrganizationById(String oid);
	
	
	public List<Map<String,Object>> getOrgTreeByOid(String oid);
	
	
	public List<District> getDistrictListByParentId(String pid);
	
	/**
	 * @param pid
	 * @param did 广州市外的did
	 * @return
	 */
	public List<District> getDistrictListByParentId(String pid,String did);
	
	
}
